#!/bin/bash
rm ../build/ ../deploy/ -rf

#运行编译
source  /opt/st/stm32mp1/4.0.1-openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15/environment-setup-cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi
export FIP_DEPLOYDIR_ROOT=$PWD/../../image-ic530
#export FIP_DEPLOYDIR_ROOT=$PWD/../../FIP_artifacts

#make -f $PWD/../Makefile.sdk CFG_EMBED_DTB_SOURCE_FILE=stm32mp135f-lierda_nand-mx all
 #make -f $PWD/../Makefile.sdk CFG_EMBED_DTB_SOURCE_FILE=stm32mp135f-lierda_nand-mx DEPLOYDIR=$PWD/../../image-ic530/optee optee 
 make -f $PWD/../Makefile.sdk CFG_EMBED_DTB_SOURCE_FILE=stm32mp135f-lierda_nand-mx DEPLOYDIR=$PWD/../../image-ic530/optee all 
